<%= stylesheet_link_tag "basic_info" %>
<div id="notice" class="notice"><%= notice %></div>

<%= render "utils/basic_info_tabs" %>

<div class="right_btn_div">
  <% if current_user.admin? %>
   <%= link_to (t 'common.new'), new_forward_path, {:class => "inline-block s-btn"}%>
  <% end -%>
</div>

<table class="grid">
  <tr>
    <th><%= t 'activerecord.attributes.forward.name' %></th>
    <th><%= t 'activerecord.attributes.forward.code' %></th>
    <th><%= t 'activerecord.attributes.forward.address' %></th>
    <th><%= t 'activerecord.attributes.forward.phone' %></th>
    <th></th>
  </tr>

  <% @forwards.each do |forward| %>
      <tr>
        <td class = "ellipsis" title = "<%=forward.name%>"><%= forward.name %></td>
        <td class = "ellipsis" title = "<%=forward.code%>"><%= forward.code %></td>
        <td class = "ellipsis" title = "<%=forward.address%>"><%= forward.address %></td>
        <td class = "ellipsis" title = "<%=forward.phone%>"><%= forward.phone %></td>
        <td style="width: 150px;">
          <%= link_to (t 'common.show'), forward %>
          <%= link_to (t 'common.edit'), edit_forward_path(forward) %>
          <%= link_to (t 'common.destroy'), forward, confirm: (t 'common.confirm_destroy'), method: :delete %>
        </td>
      </tr>
  <% end %>
</table>